/*
 * @Author: your name
 * @Date: 2020-10-14 19:41:49
 * @LastEditTime: 2020-10-20 03:16:36
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_admin\src\api\ActivityManage.js
 */
import request from '@/utils/request'

//获取供需活动分页列表
export function ActivityManageList(data) {
  return request({
      url: '/api/sysActivity/getAdminPageList',
      method: 'POST',
      data
  })
}

//添加SysActivity对象
export function AddActivityManage(data) {
  return request({
      url: '/api/sysActivity/add',
      method: 'POST',
      data
  })
}

//删除SysActivity对象
export function DeleteActivityManage(id) {
  return request({
      url: '/api/sysActivity/delete',
      method: 'POST',
      data:{
        id
      }
  })
}

//获取SysActivity对象详情
export function GetObjActivityManage(id) {
  return request({
      url: '/api/sysActivity/info',
      method: 'POST',
      data: {
        "id": id
      }
  })
}

//修改SysActivity对象
export function UpdateActivityManage(data) {
  return request({
      url: '/api/sysActivity/update',
      method: 'POST',
      data
  })
}